package cst.a311zrb.startproject307.service;


import cst.a311zrb.startproject307.bean.WeatherResult;
import retrofit2.http.GET;
import retrofit2.http.Path;


/**
 * Created by Zong on 2017/5/11.
 */
//Retrofit turns your HTTP API into a Java interface.
public interface WeatherService {
    //将接口的URL补充完整
    @GET("data/sk/{cityNumber}.html")
    //向API传参数
    retrofit2.Call<WeatherResult> getResult(@Path("cityNumber") String cityNumber);

}